import request from "@/request"

export function getCommentList(id) {
    return request({
        method: 'get',
        url: `/comment/article/${id}`,
    })
}

export function publishComment(comment,token) {
    return request({
        headers: {'Authorization': token},
        url: '/comment/article/publishComment',
        method: 'post',
        data: comment
    })
}
export function likeArticle(id) {
    return request({
        method: 'get',
        url: `/article/like/${id}`,
    })
}
export function getAllUseComment(pagination) {
    return request({
        method: 'post',
        url: '/admin/getAllUseComment',
        data: pagination
    })
}
export function deleteUserComment(id) {
    return request({
        method: 'get',
        url: `/admin/deleteUserComment/${id}`,
    })
}
